package com.ts.base.config;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * swagger2-2.9.2 configuration 配置信息
 * pom.xml 需要增加dependency
 * <!-- swagger 标准配置-->
 * 		<!--		<dependency>-->
 * 		<!--			<groupId>io.springfox</groupId>-->
 * 		<!--			<artifactId>springfox-swagger2</artifactId>-->
 * 		<!--			<version>2.9.2</version>-->
 * 		<!--		</dependency>-->
 * 		<!--		<dependency>-->
 * 		<!--			<groupId>io.springfox</groupId>-->
 * 		<!--			<artifactId>springfox-swagger-ui</artifactId>-->
 * 		<!--			<version>2.9.2</version>-->
 * 		<!--		</dependency>-->
 * 		<!-- swagger 标准配置 END-->
 *
 */
//@Configuration
//@EnableSwagger2
public class SwaggerConfiguration {
//    @Bean
//    public Docket createRestApi() {
//        return new Docket(DocumentationType.SWAGGER_2)
//                .apiInfo(apiInfo())
//                .select()
//                .apis(RequestHandlerSelectors.basePackage("com.ts.base.controller"))
//                .paths(PathSelectors.any())
//                .build();
//    }
//    private ApiInfo apiInfo() {
//        return new ApiInfoBuilder()
//                .title("河北东软唐山现场 spring boot restful-api接口说明")
//                .description("# base project RESTful APIs")
//                .termsOfServiceUrl("http://localhost:8080/swagger-ui.html")
//                .version("1.0")
//                .build();
//    }
}

